<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$


return [
    'url_route_on' => true,
    'log'          => [
        'type' => 'trace', // 支持 socket trace file
        'trace_file'=> THINK_PATH.'tpl/page_trace.tpl',
    ],
    'redis_host' => '127.0.0.1',
    'redis_port' => '6379',
    
    'template'  => [
	    // 模板引擎
	    'type'   => 'think',
	    // 普通标签开始标记
	    'tpl_begin' => '{',
	    // 普通标签结束标记
	    'tpl_end'   => '}'
  	],
    'session'                => [
        'prefix'         => 'think',
        'type'           => '',
        'auto_start'     => true,
    ],

    'default_module'        => 'index', // 默认模块名
    'default_controller'    => 'Index', // 默认控制器名
    'default_action'        => 'index', // 默认操作名
    'action_suffix'         => '', // 操作方法后缀

  	'cache'  => [
  	    'type'   => 'File',
  	    'path'   => CACHE_PATH,
  	    'prefix' => '',
  	    'expire' => 10,
  	],

    //模板常量
    'view_replace_str'=>[
        '__PUBLIC__'=>'/public',
        '__ROOT__' => '/',
        '__HOME__' => '/home',
    ]
];
